package com.example.democrud;

import com.example.democrud.user.dao.UserMapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@EnableSwagger2
@SpringBootApplication
//@MapperScan(basePackageClasses = UserMapper.class) 类型安全
@MapperScan("com.example.democrud.*.dao")//string 类型不安全
public class DemoCrudApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoCrudApplication.class, args);
    }

}

